SERVER=server_tcp
CLIENT=client_tcp
CC=g++
SERVER_SRC=TcpServer.cc
CLIENT_SRC=TcpClient.cc

.PHONY:all
all:$(SERVER) $(CLIENT)
$(SERVER):$(SERVER_SRC)
	$(CC) -o $@ $^ -std=c++17 -lpthread -ljsoncpp
$(CLIENT):$(CLIENT_SRC)
	$(CC) -o $@ $^ -std=c++17 -ljsoncpp
.PHONY:clean
clean:
	rm -rf $(SERVER) $(CLIENT)
